home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Desktop Publisher Plus
/
Desktop Publisher Plus (IBM-894)(Cosmi Corporation)(1992).img
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-03-19
|
5KB
|
191 lines
echo off
:getsrc
cls
ECHO If you are not installing to a hard drive, then you must have four blank
ECHO 5.25-inch or two 3.5-inch floppies prepared before installing.
echo label these disks as follows:
echo 5.25-inch: PROGRAM, FONTS, ART, WORK/DOCUMENT
echo 3.5-inch: PROGRAM & ART, FONTS & WORK/DOCUMENT
echo .
ECHO Continue? (PRESS [y] TO CONTINUE. Any other key aborts.)
echo .
GETUSER
if not errorlevel 121 goto end
set DRV=2
set src=
set dst=
set THREE=n
echo Do you have only one floppy drive and NO hard disk drive?
echo (Press [y] for YES, or [n] for NO.)
getuser
if errorlevel 121 goto RAMIT
goto noram
rem SETUP RAMDRIVE
:RAMIT
cls
ECHO To install on a single-floppy system, you must boot your computer
echo with a RAMDRIVE specification in the CONFIG.SYS file on your dos boot
echo disk. The ramdrive must be at least 360K bytes in size.
echo .
echo You must also have the line FILES=20 in the CONFIG.SYS file.
echo You must also copy COMMAND.COM from your DOS boot disk to the
echo ramdrive created.
echo .
echo EXAMPLE: If you have IBM DOS version 3.3, Your CONFIG.SYS file should
echo look like:
echo .
echo FILES=20
ECHO device=vdisk.sys 360
echo .
echo Other versions of dos use RAMDRIVE.SYS or some other means of setting
echo up a ramdrive. Refer to your dos manual.
echo .
echo If you haven't set up a ramdrive, then quit this install, edit your
echo CONFIG.SYS file, re-boot your computer, make a note of the ramdrive
echo letter, then run this install again.
echo .
echo Quit? (Y/N)
GETUSER
if errorlevel 121 goto end
echo NOTE: Reference to "Disk with batch file" is the SWIFT DTP disk.
pause
echo Enter the RAMDRIVE letter (enter [q] to quit).
getuser
if errorlevel 98 set src=B:
if errorlevel 99 set src=C:
if errorlevel 100 set src=D:
if errorlevel 101 set src=E:
if errorlevel 102 set src=F:
if errorlevel 103 goto END
set DST=A:
set drv=1
%SRC%
copy %dst%install*.bat %src%
:getdos
if exist %src%command.com goto havecom
ECHO You must copy COMMAND.COM from your DOS disk to the ramdrive %src%!
echo Install cancelled.
goto endall
pause
:havecom
SET COMSPEC=%SRC%\COMMAND.COM
set path=%src%\;%dst%\
:getdtp
echo .
ECHO Please place the SWIFT DTP disk in the drive
pause
if not exist %DST%sdtppak.exe goto getdtp
COPY %DST%*.* %SRC%
GOTO FLOP
:noram
echo enter source drive letter (no ':')
getuser
if errorlevel 99 goto getsrc
if errorlevel 98 goto srcb
if not errorlevel 97 goto getsrc
set src=a:
echo %src%
goto getdst
:srcb
set src=b:
echo %src%
rem - GET DESTINATION DRIVE
:getdst
echo .
echo enter the destination drive letter
getuser
if errorlevel 97 set dst=a:
if errorlevel 98 SET DST=b:
if errorlevel 99 set dst=c:
if errorlevel 100 set dst=d:
if errorlevel 101 set dst=e:
if errorlevel 99 goto hard
:dstb
rem --- FLOPPY INSTALL
:flop
%src%
echo .
echo is drive %dst% a 3.5-inch or ...
echo is capicty of drive %dst% greater than 360K ?
echo (Press [y] for yes or [n] for no)
set three=n
getuser
if errorlevel 121 set three=y
echo .
set confirm=n
Echo SOURCE DRIVE........... %src%
echo DESTINATION DRIVE...... %dst%
if %THREE%==y echo DRIVE %dst% HAS STORAGE CAPACITY GREATER THAN 360K.
if %DRV%==1 ECHO YOU HAVE ONE FLOPPY DRIVE AND NO HARD DISK.
echo .
echo Is the above correct? (enter [y] for yes or [n] for no)
GETUSER
if errorlevel 121 set confirm=y
if %confirm%==n goto getsrc
%src%
installf
rem - HARD DISK INSTALL
:hard
set three=n
echo .
set confirm=n
Echo SOURCE DRIVE........... %src%
echo DESTINATION DRIVE...... %dst%
if %THREE%==y echo DRIVE %dst% HAS STORAGE CAPACITY GREATER THAN 360K.
if %DRV%==1 ECHO YOU HAVE ONE FLOPPY DRIVE AND NO HARD DISK.
echo .
echo Is the above correct? (enter [y] for yes or [n] for no)
GETUSER
if errorlevel 121 set confirm=y
if %confirm%==n goto getsrc
%DST%
cd\
md swiftdtp
cd swiftdtp
md fonts
md clipart
echo ** 4 file groups to unpack
%SRC%sdtpPAK
%SRC%BD
%SRC%SAMPLPAK
COPY %SRC%CONFIGH.FIL CONFIG.FIL
cd clipart
echo ** 2 more file groups to unpack
%SRC%ARTPAK
cd ..\fonts
echo ** 1 more file group to unpack
%SRC%fontPAK
CD..
echo .
echo After specifying your printer...
echo Type SDTP then press [Enter] to run the SWIFT DESKTOP PUBLISHER.
pause
:END
set src=
set dst=
set THREE=
set confirm=
set DRV=
set NAME=
if exist installp.BAT installp
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo Please read the file README.TXT on the distribution disk for
echo information on editing printer drivers.
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
:endall